<?php

    // TITLE:
    // FILE: 
    // AUTHOR: 

    if ($contact) {

        echo '<h3>Edit Contact: ' . $contact->getFullName() . '</h3>';
    
        echo '<input type="hidden" name="id" value="' . $contact->getId() . '"><br>';
        echo '<input type="text" name="firstName" value="' . $contact->getFirstName() . '"><br>';
        echo '<input type="text" name="middleInitial" value="' . $contact->getMiddleInitial() . '"><br>';
        echo '<input type="text" name="lastName" value="' . $contact->getLastName() . '"><br>';

        echo '<input type="text" name="phone" value="' . $contact->getPhone() . '"> <label>Phone</label><br>';

        include (APPDIR . $dir . '/view/' . 'listAddress.php');
        include (APPDIR . $dir . '/view/' . 'listPhone.php');
        include (APPDIR . $dir . '/view/' . 'listEmail.php');
    
    } else {
        echo '<h3>Edit Contact</h3>';
    }

?>